package cn.chinawyny.boot.bootdemo.configurations;

import cn.chinawyny.boot.bootdemo.services.MyService;
import cn.chinawyny.boot.bootdemo.services.impl.MyServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyConfiguration {

//    @Bean
//    @ConditionalOnMissingBean
//    public MyService myService(){
//        return new MyServiceImpl();
//    }
}
